package ui.adapter;

import android.view.View;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.fy.fyzf.R;
import com.fy.fyzf.bean.DemanddetailBean;
import com.fy.fyzf.glideUtils.GlideUtils;

import java.util.List;

public class DemandDetailAdapter extends BaseQuickAdapter<DemanddetailBean.PublisherDetailsReleaseVoBean, BaseViewHolder> {

    private int type;
    public DemandDetailAdapter(int i) {
        super(R.layout.item_response_info);
        type = i;
    }
    @Override
    protected void convert(BaseViewHolder helper, DemanddetailBean.PublisherDetailsReleaseVoBean item) {
        /*GlideUtils.loadCircleImage(item.getUserPortrait(),helper.getView(R.id.iv_head));

        helper.setText(R.id.tv_name, item.getUserPortrait())
                .setText(R.id.tv_company, item.getCompanyName())
                .setText(R.id.tv_time, item.getCreateTime());
        if (type == 1) {
            helper.getView(R.id.tv_contact).setVisibility(View.GONE);
        } else {
            helper.getView(R.id.tv_contact).setVisibility(View.VISIBLE);
            helper.addOnClickListener(R.id.tv_contact);
        }*/
    }
}
